task :check_stock => :environment do
  Spu.all.each do |spu|
    spu.skus.each do |sku|
      spu.stock += sku.on_hand_count
    end
    spu.save
  end
end